package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.sql.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "库存实体类")
@TableName(value = "db_stock")
public class Stock implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId(value = "Stock_id",type = IdType.AUTO)
    @ApiModelProperty(value = "库存信息id")
    private String id;

    @TableField(value = "Stock_Goods_name")
    @ApiModelProperty(value = "库存商品名称")
    private String name;

    @TableField(value = "Stock_amount")
    @ApiModelProperty(value = "库存数量")
    private String amount;

    @TableField(value = "Stock_supplier")
    @ApiModelProperty(value = "库存供应商")
    private String supplier;

    @TableField(value = "Stock_Goods_id")
    @ApiModelProperty(value = "库存商品id")
    private String goodsId;

    @TableField(value = "Stock_time")
    @ApiModelProperty(value = "入库时间")
    private Date time;

}
